#include "MyVector.hpp"
#include <iostream>

using namespace std;

int main()
{
    MyVector<int> vec;
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;
    vec.push_back(1);
    vec.push_back(2);
    vec.push_back(3);
    vec.push_back(4);
    vec.push_back(5);
    vec.pop_back();
    // vec.at(2);
    vec.insert(1, 50);
    //1 2 3 4 ---->1 50 2 3 4
    cout<<vec.at(2)<<endl;
    vec.remove(3);
    cout << vec;
    cout << "capacity: " << vec.capacity() << ", size: " << vec.size() << endl;
    cout<<vec.back()<<endl;
    cout<<vec.front()<<endl;
    cout<<vec[3]<<endl;
    cout<<vec.empty()<<endl;
    return 0;
}